package com.bfly.mall.order.event;

import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationEvent;

/**
 * 订单取消事件
 *
 * @author 长沙商脉科技有限公司
 * @date 2020/12/14 21:42
 */
public class OrderCancelEvent extends ApplicationEvent {

    private final ApplicationContext context;
    private final String orderNo;
    private final String reason;

    public OrderCancelEvent(ApplicationContext ctx, String orderNo,String reason) {
        super(ctx);
        this.context = ctx;
        this.orderNo = orderNo;
        this.reason=reason;
    }

    public String getReason() {
        return reason;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public ApplicationContext getApplicationContext() {
        return this.context;
    }
}
